package com.wfcm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfcm.dao.WfIndexRecommendDao;
import com.wfcm.entity.WfIndexRecommendEntity;
import com.wfcm.service.WfIndexRecommendService;



@Service("wfIndexRecommendService")
public class WfIndexRecommendServiceImpl implements WfIndexRecommendService {
	@Autowired
	private WfIndexRecommendDao wfIndexRecommendDao;
	
	@Override
	public WfIndexRecommendEntity queryObject(Integer id){
		return wfIndexRecommendDao.queryObject(id);
	}
	
	@Override
	public List<WfIndexRecommendEntity> queryList(Map<String, Object> map){
		return wfIndexRecommendDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return wfIndexRecommendDao.queryTotal(map);
	}
	
	@Override
	public void save(WfIndexRecommendEntity wfIndexRecommend){
		wfIndexRecommendDao.save(wfIndexRecommend);
	}
	
	@Override
	public void update(WfIndexRecommendEntity wfIndexRecommend){
		wfIndexRecommendDao.update(wfIndexRecommend);
	}
	
	@Override
	public void delete(Integer id){
		wfIndexRecommendDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		wfIndexRecommendDao.deleteBatch(ids);
	}

	//查询首页推荐类别
	@Override
	public List<WfIndexRecommendEntity> queryCourseInfoList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return wfIndexRecommendDao.queryCourseInfoList(map);
	}

	@Override
	public List<WfIndexRecommendEntity> queryCourseChapterList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return wfIndexRecommendDao.queryCourseChapterList(map);
	}

	//查询首页推荐类别
	@Override
	public WfIndexRecommendEntity queryCourseInfo(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return wfIndexRecommendDao.queryCourseInfo(map);
	}

	@Override
	public WfIndexRecommendEntity queryCourseChapter(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return wfIndexRecommendDao.queryCourseChapter(map);
	}

	@Override
	public List<WfIndexRecommendEntity> queryVipCardList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return wfIndexRecommendDao.queryVipCardList(map);
	}

	@Override
	public WfIndexRecommendEntity querySimpleVipCard(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return wfIndexRecommendDao.querySimpleVipCard(map);
	}

	@Override
	public List<WfIndexRecommendEntity> queryIndexList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return wfIndexRecommendDao.queryIndexList(map);
	}
	
}
